class Solution:
    def capitalizeTitle(self, title: str) -> str:
        title = title.split(" ")
        result_t = ""
        print(title)
        for i in title:
            if len(i)>2:
                result_t = result_t + i[0].upper() + i[1:].lower()
            else:
                result_t+=i.lower()
            result_t += " "
        return result_t[:-1]

if __name__ == '__main__':
    title =     "L hV"

    solution = Solution()
    val = solution.capitalizeTitle(title)
    print(val)